]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Fix typo in gnome-shell-extension-prefs
authorStefano Facchini <stefano.facchini@gmail.com>
Fri, 1 Feb 2013 18:33:20 +0000 (19:33 +0100)
committerStefano Facchini <stefano.facchini@gmail.com>
Mon, 4 Feb 2013 11:00:42 +0000 (12:00 +0100)
Environment variables should be checked for zero length,
instead of non-zero. This prevented the script to run
correctly in a jhbuild shell for example.

https://bugzilla.gnome.org/show_bug.cgi?id=693031

src/gnome-shell-extension-prefs.in

index acc2cb17168a7dbfb5b48ef250f8aa1291d23a95..a1690a62fc6ee00bfb2fec5a8ae494f79045983d 100644 (file)
@@ -1,12 +1,12 @@
 #!/bin/sh
 
-if [ -n "$GI_TYPELIB_PATH" ]; then
+if [ -z "$GI_TYPELIB_PATH" ]; then
     export GI_TYPELIB_PATH=@pkglibdir@
 else
     export GI_TYPELIB_PATH=@pkglibdir@:$GI_TYPELIB_PATH
 fi
 
-if [ -n "$LD_LIBRARY_PATH" ] ; then
+if [ -z "$LD_LIBRARY_PATH" ] ; then
     export LD_LIBRARY_PATH=@pkglibdir@
 else
     export LD_LIBRARY_PATH=@pkglibdir@:$LD_LIBRARY_PATH